package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = {"com.dao"})
@EnableTransactionManagement
@EnableOpenApi
@EnableSwagger2
//public class SpringbootSchemaApplication extends SpringBootServletInitializer{
//
//	public static void main(String[] args) {
//		SpringApplication.run(SpringbootSchemaApplication.class, args);
//	}
//
//	@Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
//        return applicationBuilder.sources(SpringbootSchemaApplication.class);
//    }
//}
public class SpringbootApplication {
	public static void main(String[] args) {
		SpringApplication.run(SpringbootApplication.class);

	}
}